package com.coderman.basketball.app.clientimpl;

import com.coderman.basketball.client.api.trade.TradeFacade;
import com.coderman.basketball.client.dto.trade.SignContractDTO;
import com.coderman.basketball.domain.gataway.trade.ContractService;
import com.coderman.basketball.domain.model.trade.bo.ContractBO;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Description:
 * date: 2021/5/14
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Service
public class TradeFacadeImpl implements TradeFacade {

    @Autowired
    private ContractService contractService;

    @Override
    public String startOneTradeApply() {
        return null;
    }

    @Override
    public String signContract(SignContractDTO signContractDTO) {
        //1.获取当前年份球队薪资水位
        //2.计算是否需要交奢侈税，以及奢侈税金额
        //3.根据合同获取薪资条款，在发放薪资/球员交易的时候根据条款走业务流程
        contractService.signWithinTeamPlayer(new ContractBO());
        return null;
    }
}
